package com.irdstudio.efp.riskm.service.impl;

import com.irdstudio.efp.console.common.ConsoleConstant;
import com.irdstudio.efp.flow.common.vo.PageApproveVO;
import com.irdstudio.efp.riskm.service.facade.OutsTaskFlowAppApprService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 委外催收任务人工流转审批后处理类
 * 需求编号【2019D0509】
 *
 * @author qiuyf
 * @version 0.1 初始为0.1,后续变更则修改
 * @since 2019/9/21 21:06
 */
@Service("flowOutsTaskFlowAppApprService")
public class OutsTaskFlowAppApprServiceImpl implements OutsTaskFlowAppApprService {

    private static Logger logger = LoggerFactory.getLogger(OutsTaskFlowAppApprServiceImpl.class);

    @Autowired
    private ColltTaskFlowApprDealService colltTaskFlowApprDealService;

    @Override
    public void pass(String bizSerno, PageApproveVO pageApproveVo) {
        logger.debug("======>委外催收人工流转申请审批通过后处理开始，流水号<======" +bizSerno);

        colltTaskFlowApprDealService.colltTaskFlowApprPass(bizSerno, pageApproveVo, ConsoleConstant.APRV_STATUS_03);

        logger.debug("======>委外催收人工流转申请审批通过后处理结束，流水号<======" +bizSerno);
    }

    @Override
    public void refuse(String bizSerno, PageApproveVO pageApproveVo) {
        logger.debug("======>委外催收人工流转申请审批拒绝后处理开始，流水号<======" +bizSerno);

        colltTaskFlowApprDealService.colltTaskFlowApprRefuse(bizSerno, pageApproveVo, ConsoleConstant.APRV_STATUS_04);

        logger.debug("======>委外催收人工流转申请审批拒绝后处理结束，流水号<======" +bizSerno);
    }

    @Override
    public void repulse(String bizSerno, PageApproveVO pageApproveVo) {

    }


}
